FROM buildpack-deps:stretch-curl

ENV VECTOR_VERSION latest
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" && \
    case "${dpkgArch##*-}" in \
      amd64) ARCH='amd64';; \
      *)     echo "Unsupported architecture: ${dpkgArch}"; exit 1;; \
    esac && \
    wget --no-verbose https://packages.timber.io/vector/${VECTOR_VERSION}/vector-${VECTOR_VERSION}-${ARCH}.deb && \
    dpkg -i vector-${VECTOR_VERSION}-${ARCH}.deb && \
    rm -f vector_${VECTOR_VERSION}-${ARCH}.deb